package com.xxx.video.commen.adapters;

import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

import butterknife.ButterKnife;

public abstract class BaseViewHolder extends RecyclerView.ViewHolder {
    private String tag;

    private int position;

    public BaseViewHolder(View itemView) {
        super(itemView);
        ButterKnife.bind(this, itemView);
    }

    /**
     * set data to view
     *
     * @param position position
     */
    public abstract void setData2View(int position);

    public void setPosition(int position) {
        this.position = position;
    }

    public int getCurrentPosition() {
        return position;
    }

    /**
     * refresh  holder
     *
     * @param progress progress
     */
    public void refresh(int progress) {

    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getTag() {
        return tag;
    }

    public void setStatus(String url) {

    }
}
